package com.jic.product.service;


import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.product.entity.StoreInventory;
import com.jic.product.manage.request.ProductBatchUpdateRequest;
import com.jic.product.manage.request.StoreInventoryRequest;
import com.jic.product.manage.response.StoreInventoryResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* 店铺仓库表
* @author :
* @email :
* @since : 2020-01-16 04:47:43
* @version : v1.0.0
*/
public interface StoreInventoryService {

    long insert(StoreInventory storeInventory);

    long delete(Long id);

    long update(StoreInventory storeInventory);

    StoreInventory queryByPrimaryKey(Long id);

    List<StoreInventory> query(StoreInventory storeInventory);

    PageResult<StoreInventoryResponse> queryPage(StoreInventoryRequest storeInventory, Page pageQuery);
    RestResult batchUpdateProductStock(ProductBatchUpdateRequest productBatchUpdateRequest);

    /**
     * 通过导入店铺商品修改商品价格
     *
     * @return
     */
    RestResult byExcelUpdateProductStock(String fileName, MultipartFile file) throws Exception;


    RestResult batchUpdateAvailableStock();

    Integer queryByProductIds(List<Long> productIds);
}
